
abstract class Arbre implements Comparable{
	
	int frequence;
	
	public int getFrequence() {	
		
		return frequence;	
		
	}
	
	public int compareTo(Object obj) {
		
		Arbre arbre = (Arbre) obj;
		
		if (frequence == arbre.frequence){
		      
	     return (hashCode() - arbre.hashCode());
		      
		    }
		
		else {
		     
	      return frequence - arbre.frequence;
	      
	    }

		
	}

}
